using UnityEngine;
using System.Collections;

/// \class  gkTransformPhysicComponent
/// \brief  Physic component for actor controlled by transform
[AddComponentMenu("GK/Engine/Core/Physic/gkTransformPhysicController")]
public class gkTransformPhysicController : gkPhysicController
{
    /// \brief  Make the linear movement
    protected override void ProcessLinearMovement()
    {
	    // Movement
        transform.position += GetLinearVelocity() * Time.deltaTime;
    }

    // \brief  Make the angular movement
    protected override void ProcessAngularMovement()
    {
	    // Movement
		transform.Rotate(GetAngularVelocity() * Time.deltaTime);
    }
}